package com.ruoyi.system.api;


import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.AiExperiment;
import com.ruoyi.system.api.domain.AlgorithmType;
import com.ruoyi.system.api.domain.Partnerinfo;
import com.ruoyi.system.api.factory.RemoteAiExperimentFallbackFactory;

import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 合作单位服务
 **/
@FeignClient(contextId = "remoteAiExperimentService", value = ServiceNameConstants.AIEXPERIMENT_SERVICE, fallbackFactory = RemoteAiExperimentFallbackFactory.class)
public interface RemoteAiExperimentService {

    @PostMapping("/experiment")
    public R<Partnerinfo> add(@RequestBody AiExperiment aiExperiment);

    @GetMapping("/experiment/list1")
    public List<AiExperiment> AiExperimentlist( AiExperiment aiExperiment);

    @GetMapping("/type/list1")
    public List<AlgorithmType> AlgorithmTypelist( AlgorithmType algorithmType);

}
